import 'package:animations/animations.dart';
import 'package:flutter/material.dart';
import 'package:zcw_eyepetizer/config/string.dart';
import 'package:zcw_eyepetizer/widget/app_bar.dart';

import 'home_body_page.dart';

class HomePage extends StatefulWidget{

  @override
  _HomePageState createState() => _HomePageState();

}

class _HomePageState extends State<HomePage>
    with AutomaticKeepAliveClientMixin{
  @override
  Widget build(BuildContext context) {
    super.build(context);
    return Scaffold(appBar: appBar(
      ZcwString.home,
      showBack: false,
      actions: <Widget>[
        // 搜索图标
        // _searchIcon(),
      ],
    ),
      body: const HomeBodyPage(),);
  }


  /// 搜索图标
  // Widget _searchIcon() {
  //   return Padding(
  //     padding: const EdgeInsets.only(right: 15),
  //     child: OpenContainer(
  //       closedElevation: 0.0,
  //       closedBuilder: (context, action) {
  //         return const Icon(
  //           Icons.search,
  //           color: Colors.black87,
  //         );
  //       },
  //       openBuilder: (context, action) {
  //         return SearchPage();
  //       },
  //     ),
  //   );
  // }

  @override
  // TODO: implement wantKeepAlive
  bool get wantKeepAlive => true;

}